<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .one{
            width: 980px;
            height: 500px;
            border: 1px solid #ddd;
            margin: 10px auto;

            /*伸缩盒*/
            display: flex;

            /*设置换行 默认是不换行 nowrap*/
            flex-wrap: wrap;


            /*在换行的基础上，将行反转*/
            /*flex-wrap: wrap-reverse;*/

            /*简写属性*/
            /*flex-flow: row-reverse  wrap;*/
            /*align-items: center;*/

            /*作用与 align-items 一样，不过 align-content 适用于多行模式*/
            /*align-content: flex-start;*/
            /*align-content: flex-end;*/
            /*align-content: center;*/
            /*align-content: space-around;*/
            align-content: space-between;
            justify-content: space-between;



        }

        .one>div{
            width: 300px;
            height: 200px;
            border: 1px solid orange;
        }


    </style>


</head>
<body>

<div class="one">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
</div>




</body>
</html>